package com.jctrip.hotel.source.client;

import com.jctrip.hotel.source.model.elong.resp.ElongResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author: zxy
 * @CreateTime: 2023-08-21 09:22
 * @Description:
 */
@FeignClient(name = "ElongClient", url = "${feign.url.elong}")
@RequestMapping(headers = {"accept=application/json", "Content-Type=application/json;charset=UTF-8","Accept-Encoding=gzip, deflate"})
public interface ElongClient {
    @GetMapping("/rest")
    ElongResult callElong(@RequestParam("user") String user,
                          @RequestParam("method") String method,
                          @RequestParam("timestamp") String timestamp,
                          @RequestParam("format") String format,
                          @RequestParam("data") String data,
                          @RequestParam("signature") String signature);
}
